package com.arouter.demo.searchmodule.uri;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.arouter.demo.baselib.router.RouterPath;
import com.arouter.demo.searchmodule.R;

@Route(path = RouterPath.WEB_ACTIVITY)
public class WebviewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_webview);

        WebView webView = findViewById(R.id.webview);

        String url = getIntent().getStringExtra("url");
        webView.loadUrl(url);

    }
}
